#include "conn.hpp"

int main(){
    StringUtil::UrlParam params;
    MYSQL* conn;
    Init(params,conn); 
   
    //根据业务需要进行计算
    string topic = params["topic"];
    string page = params["page"];
    string user = params["user"];
    stringstream ss;
    string output;

    Action::ActionDisplay(conn,output,topic,user,page);
    cout << "Set-Cookie: cookie_topic=" << topic << "\n";
    cout << "Set-Cookie: cookie_page=" << page << "\n";
    
    ss << output;
    HttpResponse(ss.str());
    return 0;
}
